package com.bjpowernode.springboot.dao;

import com.bjpowernode.springboot.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.transaction.annotation.Transactional;

@Mapper
public interface StudentMapper {
    Student queryStudentById(int id);

    @Transactional // 事务
    int updateStudentById(Student student);
}
